package com.isunland.managesystem.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.entity.LocaleWorkQueryCount;

/**
 * 对象功能: 作业任务填报
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: wangyanan
 * 创建时间: 2016/12/16 15:44
 */

public class LocaleWorkQueryCountUpdateActivity extends SingleFragmentActivity {
  private LocaleWorkQueryCount item;

  @Override public void onCreate(Bundle arg0) {
    item = (LocaleWorkQueryCount) getIntent().getSerializableExtra(
        LocaleWorkQueryCountUpdateFragment.EXTRA_ITEM);
    super.onCreate(arg0);
  }

  @Override protected Fragment createFragment() {
    return LocaleWorkQueryCountUpdateFragment.newInstance(item);
  }

  public static void newInstance(android.support.v4.app.Fragment fragment, Activity context,
      LocaleWorkQueryCount item, int requestCode) {
    if (fragment == null || context == null) return;
    Intent intent = new Intent(context, LocaleWorkQueryCountUpdateActivity.class);
    intent.putExtra(LocaleWorkQueryCountBaseFragment.EXTRA_ITEM, item);
    fragment.startActivityForResult(intent, requestCode);
  }
}


